package phr_interface;

public class PHRInterface {

	/**
	 * @param args
	 */
	public static void main(String[] args) {

		Interface phr = new Interface(args[0], Integer.valueOf(args[1]));
		phr.run();

/*		
		String xml = "<root>" +
				"<user id=\"1234\" right=\"owner\" />" +
				"<rule role=\"doctor\" department=\"any\" organization=\"any\" right=\"reader\" />" +
				"</root>";
		
		AccessControlList acl = new AccessControlList(xml);
		acl.revokeRule(0);
		System.out.println(acl.getXMLString());
		
		Identity id = new Identity();
		id.id = "1234";
		id.firstName = "first";
		id.lastName = "last";
		id.role = "nurse";
		id.department = "emergency";
		id.organization = "hospital";
		
		acl.revokeUser(0);
		System.out.println(acl.hasAccess(id));
		*/
	}

}
